

<script>
	var tree;
	$(function () {
		$('.left-tree-div').height($(window).height() - 200);
		
		$.ajax({
			type: "post",
			url: "/api/inter/menu/tree",
			data: {},
			dataType: "json",
			success: function (result) {
				tree = $('#id_tree').treeview({
					selectedIcon : 'glyphicon glyphicon-stop',
					data: result.data,         // 数据源
					levels : 3,  //设置继承树默认展开的级别
					showIcon : false,
					showCheckbox : false,
					showTags: false, //是否在每个节点右边显示tags标签。tag值必须在每个列表树的data结构中给出
					multiSelect : false,
					onNodeSelected : function (event, data) {
						if (data.type != 'menu') {
							return;
						}
						if (data.menuLev != 2) {
							return;
						}
						obj_.table.param.menuId = data.id;
						
						obj_.table.table.bootstrapTable("refreshOptions", {pageNumber: 1});
					}
				});
			},
			error: function () {
			    alert("加载失败！")
			}
	   });
	});
</script>